module PublicHelper

  def chapter_ids(vol)
    ret = []
    query = "select distinct chapter_id from comics where volume_id=#{vol}"
	result = Comic.connection.execute query
	result.each do |row|
	  ret << row[0]
	end
	return ret.collect{|r|["Chapter #{r}",r]}
  end

end
